package com.lin.missyou.dto.validators;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author gcq
 * @Create 2021-10-29
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.FIELD})
@Constraint(validatedBy = TokenPasswordValidator.class)
public @interface TokenPassword {
    int min() default 6;

    int max() default 32;

    String message() default "字符不符合要求";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default{};
}